package com.etennis.pojos;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class PageRequest {

    @NotNull(message = "page cannot be null")
    @ApiModelProperty("页码")
    private int page;

    @NotNull(message = "pageSize cannot be null")
    @ApiModelProperty("每页记录数")
    private int pageSize;
}
